package com.fy.springmvc2.entity;




import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (User)实体类
 *
 * @author makejava
 * @since 2022-05-06 20:47:52
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {

    private Integer id;
    
    private String name;
    
    private String password;
    
    private String phone;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ctime;

    public User(String name, String password, String phone, Date ctime) {
        this.name = name;
        this.password = password;
        this.phone = phone;
        this.ctime = ctime;
    }
}

